{extend name="blog/index"}
{block name="main"}

<script>
function edit_category(id) {
    name = $('#name_' + id).html();
    $('#editcat_id').val(id);
    $('#editcat_name').html(name);
    Picobox.showDOMBox('修改分类','#editCat',{width:390,height:138});
}
  function change_order() {
  	var f = document.sortForm;
  	f.action="/7234306/categories/categories_order";
  	f.REQUEST_METHOD.value = 'PUT';
  	f.submit();
  }
</script>
<style type="text/css">
.nav ul li.fenglei a { 
  background:#fff; 
  color:#90c044; 
  -webkit-border-radius:5px 5px 0 0; 
  -moz-border-radius:5px 5px 0 0; 
  border-radius:5px 5px 0 0; 
}
.number { height:20px;width:40px; }
.last-col a { color:#90c044; }
</style>
<div class="container">
      <div class="content">
        <div class="current-blog">
        	<span class="subCurrent">
	<div style='float:left'>
	当前博客：<a title="在新窗口中查看：蒂法 (http://queentifa.blogbus.com" class="pub_blogName01" target="_blank" href="http://queentifa.blogbus.com">蒂法</a>
	</div>
	<div style='float:left;margin-left:10px'>
		<a id="switch_blog" onclick="toggleMenu('#dm_changeBlog')" title="切换当前博客" class="pub_subLink" href="javascript:void(0)">[切换博客]</a>
		<ul style="display: none;" class="pub_dropmenu change_blog" id="dm_changeBlog">
			
			<li><a onclick="hideMenu('#dm_changeBlog');return false;" href="/7234306/categories/categories">
				蒂法</a></li>
			
		</ul>
	</div>
	<script type="text/javascript">
	function toggleMenu(selector){
		$(selector).slideToggle('fast');
	}
	</script>
</span>
        </div>
         <div class="blog-submenus">
	      <a href="javascript:void(0)" class="actived"  onclick="Picobox.showDOMBox('创建新分类','#addNewCat',{width:390,height:158});">创建新分类</a>
	    </div>
  
		<!--title end-->   
		  <form method="post" action="/7234306/categories" onsubmit="return confirmDel();" name="sortForm">
		    <table cellpadding="0" cellspacing="0" class="pub_list01 pri_blogPostList data-table">
		      <thead>
       			 <tr>
			        <th width="3%" class="first-col"></th>
			        <th width="10%" class="second-col">序号</th>
			        <th width="55%" class="second-col">分类名称</th>
			        <th width="16%" class="second-col" style="text-align:left">文章数</th>
			        <th width="16%" class="last-col">操作</th>
			      </tr>
		      </thead>
		       <tbody>
			      				  <tr>
			        <td class="first-col"><input type="checkbox" name="sort[4451580]" class="mch" /></td>
			        <td class=""><input type="text" value="0" name="orderId[4451580]" style="width:20px;"/></td>
			        <td  class="align-left"><a id="name_4451580" href="/7234306/posts/?cate=4451580">心情</a></td>
			        <td  class="align-left">0</td>
			        <td class="last-col"><a href="javascript:void(0)" onclick='edit_category("4451580")'>[修改]</a></td>
			      </tr>
			      			     </tbody>
			     <tfoot>
			     	<tr>
			          <td>
			          <input type="checkbox" onclick="doCheck(this.checked)"/> 
			          </td>
			          <td colspan="4" class="align-left">
			          <span><a href="javascript:void(0)" onclick="doCheck(true)">全选</a></span> 
			          <span><a href="javascript:void(0)" onclick='change_order();'>改变序列</a></span>
			          <span><input type="submit" name="button" class="button" value="删除" /></span></td>
			          <input name="REQUEST_METHOD" value="DELETE" type="hidden" />			        </tr>
			     </tfoot>
		    </table>
		    
		  </form>
		<!--main end-->
		</div>
		
		
		  		 <div id="addNewCat" style="display:none">
			<form method="post" action="/7234306/categories">
				<table border="0" cellpadding="0" cellspacing="0" width="350px" class="popup_edit" >
				  <tr>
				    <th class="height30">新分类名称：</th>
				    <td><input name="name" type="text" style="width:200px;" /></td>
				  </tr>
				  <tr>
				    <td colspan="2"><div class='buttoncenter'>
				<input type="submit" value="保存"   class="button"/><input  class="button" type="button" onclick="parent.Picobox.hide()" value="取消" />
				</div></td>
				  </tr>
				</table>
			</form>
		</div>
				<div id="editCat" style="display:none">
			<form method="post" action="/7234306/categories">
				<input id="editcat_id" name="id" type="hidden"/><input name="REQUEST_METHOD" value="PUT" type="hidden" />				<table border="0" cellpadding="0" cellspacing="0" width="350px" class="popup_edit" >
				  <tr>
				    <th class="height30">原分类名称：</th>
				    <td id="editcat_name"></td>
				  </tr>		
				  <tr>
				    <th class="height30">新分类名称：</th>
				    <td><input name="name" type="text" style="width:200px;" /></td>
				  </tr>
				  <tr>
				    <td colspan="2" class='buttontd'><div class="buttoncenter">
				<input type="submit" value="保存修改"  class="button"/><input type="button"  class="button" onclick="parent.Picobox.hide()" value="取消" />
				</div></td>
				  </tr>
				</table>
			</form>
		</div>
		
</div>
		<script type="text/javascript" src="/static/other/.com/msg_count"></script>
	<script type="text/javascript">
	$('body').click(function(e){
	if(!$(e.target).hasClass('pub_subLink') && !$(e.target).parents().hasClass('pub_dropmenu')){
	$('.pub_dropmenu').slideUp('fast');
	}
	})
	</script>
	<!--main end--><!--
	<footer class="footer">
  			<div class="copyright">&copy; 2002 - 2017 BlogBus.com, All Rights Reserved. 博客大巴 版权所有
  			  	<a href="javascript:void(0)" onclick="Picobox.showIFrameBox('反馈意见','http://home.blogbus.com/feedback?url=http%3A%2F%2Fblog.home.blogbus.com%2Fcategories',{width:400,height:200});">反馈意见</a>
  			</div>
	</footer>
	-->
	{/block}